package com.cvs.service.impl;

import com.cvs.bean.Jifen;
import com.cvs.dao.JifenMapper;
import com.cvs.service.JifenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("jifenService")
public class JifenServiceimpl implements JifenService {
    @Autowired
   private  JifenMapper jifenMapper;
    @Override
    public List<Jifen> findAll(Integer uid) {

        return jifenMapper.findAll(uid);
    }

    @Override
    public int addJifenlog(Jifen jifen) {
        return jifenMapper.addJifenlog(jifen);
    }

    @Override
    public List<Map<String,Object>> findCount(Integer uid) {

        return jifenMapper.findCount(uid);
    }
}
